<template>
  <div>
    <el-card class="oneCard" @click.native="$router.push({path:'/assets/fixedAsset'})">
      <div>
        <div>
          <el-link :type="type" :underline="false">{{ total }}</el-link>
          <h2>{{ name }}</h2>
        </div>
        <div><svg-icon :icon-class="icon" /></div>
      </div>
    </el-card>
  </div>
</template>
<script>
import { transferedAssetTotal } from '@neu/dcom-ui/api/transferWeekly'

export default {
  name: 'TransferAsset',
  data() {
    return {
      icon: 'transferAsset',
      type: 'success',
      total: 0,
      name: '移交资产（件）'
    }
  },
  mounted() {
    this.getTotal()
  },
  methods: {
    // 获取数量
    getTotal() {
      transferedAssetTotal().then(response => {
        this.total = response.data
      })
    }
  }
}
</script>
